//
//  twodatamodel.m
//  22-homework-alixingqiu
//
//  Created by dllo on 16/8/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "twodatamodel.h"
#import "twoactionmodel.h"
@implementation twodatamodel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        _two_id = value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"action"]) {
        _action = [twoactionmodel modelWithDic:value];
    }
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"%@%@%@", _name, _desc, _picUrl];
}

@end
